From 04d005bcf3849002ad88cdbc638f7d2708666404 Mon Sep 17 00:00:00 2001 From: robertl Date: Tue, 18 Apr 2006 21:41:53 +0000 Subject: [PATCH] Don't aggressively toss vowels when we're makign waypoint names that aren't really very short anyway. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@1907 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/mkshort.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/gpsbabel/mkshort.c b/gpsbabel/mkshort.c index 4a156923d..d99d28bcb 100644 --- a/gpsbabel/mkshort.c +++ b/gpsbabel/mkshort.c @@ -472,8 +472,16 @@ mkshort(short_handle h, const char *istring) /* * Delete vowels starting from the end. If it fits, quit stomping * them. If we run out of string, give up. + * + * Skip this test is our target length is arbitrarily considered + * "long" as it turns out a truncated string of full words is easier + * to read than a full string of vowelless words. + * + * It also helps units with speech synthesis. */ - replaced = 1; + if ( hdl->target_len < 15) { + replaced = 1; + } while (replaced && strlen(ostring) > hdl->target_len) { ostring = delete_last_vowel(2, ostring, &replaced); } -- 2.30.2